<?php
		
	$file = 'image1';
	if(!empty($_FILES[$file])){
		$dir = "../../../images/promocoes";
		$name = $_FILES[$file]['name'];
		$tmp = $_FILES[$file]['tmp_name'];
		$count = in_array(substr($name, -3), $ext);
		$renomeia = "1.".substr($name, -3);
		move_uploaded_file($tmp, $dir."/".$renomeia);
	}
			
	header("location: ../../index.php?option=into&view=promocoes");
	

?>